package com.msb.desginpatterns.facade;

/**
 * 门面对象
 */
public class Facade {
    private SubSystemA subSystemA = new SubSystemA();
    private SubSystemB subSystemB = new SubSystemB();
    private SubSystemC subSystemC = new SubSystemC();

    public void method(){
        // 这里也可以写更复杂的逻辑，比如switch语句
        subSystemA.methodA();
        subSystemB.methodB();
        subSystemC.methodC();
    }
}
